package com.service.pay.diamond.listener;

import com.service.pay.diamond.event.UnifiedOrderEvent;
import com.service.pay.diamond.model.UnifiedOrderModel;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Component
@Slf4j
/*预下单事件*/
public class UnifiedOrderEventListener {
    @EventListener
    public void unifiedOrder(UnifiedOrderEvent event) {
        UnifiedOrderModel orderModel = event.getOrderModel();
        log.warn("预下单：{}", orderModel);
    }
}
